import Vue from 'vue';
import Router from 'vue-router';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
import VueCookie from 'vue-cookie'
import 'element-ui/lib/theme-chalk/display.css';
import '../static/theme/index.css';
import '../static/css/style.css'

//路由组件
import SellerList from '@/components/seller/seller-list.vue';
import Shdetail from '@/components/seller/shdetail.vue'
import Pay from '@/components/seller/pay.vue';
Vue.prototype.$ajax = axios
Vue.use(ElementUI);
Vue.use(VueCookie);
Vue.use(Router);
const router = new Router({
	mode: 'history', 
	history:false,
	routes:[
		{ 
			path: '/H5/mdlist.html', 
			component: SellerList,
	    },
		{ path: '/mdlist.html/shdetail', component: Shdetail },
		{ path: '/mdlist.html/pay', component: Pay },
	]
});  
Vue.config.productionTip = false;

new Vue({
  el: '#app',
  router:router,
  beforeCreate(){
  	this.$router.push({path:'/H5/mdlist.html'});
  }
})

